from flask import Flask
from sale.config import Config
from flask_sqlalchemy import SQLAlchemy
from flask_session import Session
import os


app = Flask(__name__)

app.config['SESSION_TYPE'] = 'filesystem'
app.config['SECRET_KEY'] = os.urandom(24)
Session(app)

app.config.update(Config)

db = SQLAlchemy(app)


